package com.kylefu.design.pattern.builder;

public class Director {

  private Builder builder;

  public void setBuilder(Builder builder) {
    this.builder = builder;
  }

  public Product getProduct(){
    return builder.getProduct();
  }

  public void construct(){
    builder.createProduct();
    builder.buildName();
    builder.buildColor();
    builder.buildSize();
  }
}
